<?php
class AccountDoc extends Zend_Db_Table
{	
	protected $_name = 'person_doc';
	protected $_primary = array('person_id', 'doc_id');	
	
	protected $_referenceMap = array(
        'Account' => array(
            'columns'           => 'person_id',
            'refTableClass'     => 'Accounts',
            'refColumns'        => 'acc_n'
            )
            
        ,'Document' => array(
            'columns'           => 'doc_id',
            'refTableClass'     => 'Documents',
            'refColumns'        => 'doc_id'
        )
        
	);

}
